package com.exp.collection;

import java.util.ArrayList;

public class ExpCollection {

	public static void main(String[] args) {
		int a=10;
		int i;
		int count=0;;

		ArrayList<Integer>[] LOI = new ArrayList[10];
		for( i=0;i<LOI.length;i++) {
			LOI[i] = new ArrayList<Integer>();
			LOI[i].add(a);
			a+=10;			
		}
		System.out.println("Elements int the list are:");
		for( i=0;i<LOI.length;i++) {
			System.out.println(LOI[i]);
		}
		
		System.out.println("After adding new element to the middle of the list");
		ArrayList[] res = new ArrayList[LOI.length + 1];
			res = AddElement.addItem(LOI,6);
		
			System.out.println("Elements int the list are:");
			for( i=0;i<res.length;i++) {
				System.out.println(res[i]);
	}
}
}

